package com.gwz.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import com.gwz.sys.interceptor.LoginInterceptor;

@Configuration
public class InterceptorConfig implements WebMvcConfigurer{
	
	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		LoginInterceptor interceptor = new LoginInterceptor();
		InterceptorRegistration registration = registry.addInterceptor(interceptor);
		registration.addPathPatterns("/**")
		.excludePathPatterns("/login/login*","/login**","/resources/**");
	}
	
	
}
